package net.xdclass.order_server.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import net.xdclass.order_server.service.ProductOrderService;

@RestController
@RequestMapping("api/v1/order")
public class OrderController {

	
	@Autowired
	private ProductOrderService productOrderService;
	
	
	@RequestMapping("save")
	public Object save(int userId,int productId) {
		  return productOrderService.save(userId, productId);
	}
	
}
